package com.bian.amqp.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;



/**
 * @author bianpengfei
 * @create 2019-02-05 15:57
 **/

@Configuration
public class MyAmqpConfig {

    @Bean
    public MessageConverter messageConverter() {
        System.out.println("注入进来-----------------");
        return new Jackson2JsonMessageConverter();
    }
}
